<table class="admin-table">
    <tr>
        <th width="20">ID</th>
        <th>Action</th>
        <th>Position</th>
        <th>Layout</th>
        <th width="150">Theme</th>
        <th width="10">Published</th>
        <th width="10">Order</th>
        <th width="10">Actions</th>
    </tr>
    <?php foreach ($this->pager->execute() as $item) { ?>
        <tr>
            <td align="center"><?php echo $item->id; ?></td>
                <td>
                    <?php echo $this->link($item->name, $this->url(array('action' => 'edit-widget', 'id' => $item->id))); ?>
            </td>
            <td align="center"><?php echo $item->placeholder; ?></td>
            <td align="center"><?php echo $item->Layout->title; ?></td>
            <td align="center"><?php echo $item->Layout->Theme->title; ?></td>
            <td align="center"><a href="<?php echo $this->url(array('action' => 'publish-widget', 'module' => 'templater', 'id' => $item->id), 'admin', true); ?>" class="icon16 <?php if($item->published) echo 'icon-published'; else echo 'icon-not-published'?>"></a></td>
            <td align="center"><?php echo $item->ordering; ?></td>
            <td align="center" nowrap="nowrap">
            <?php echo $this->link('Edit', $this->url(array('action' => 'edit-widget', 'id' => $item->id)),
                            array('class' => 'edit-item')); ?>
            <?php echo $this->link('Delete', $this->url(array('action' => 'delete-widget', 'id' => $item->id)),
                            array('class' => 'delete-item'), 'Delete this widget?'); ?>
        </td>
    </tr>
<?php } ?>
</table>
